package com.synergy.stockflow.production.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "production_scheduling")
public class ProductionScheduling {
    /**
     * 排产编号
     */
    @TableId(value = "scheduling_id", type = IdType.ASSIGN_ID)
    @Schema(description="排产编号")
    private String schedulingId;

    /**
     * 排产名称
     */
    @TableField(value = "schedule_name")
    @Schema(description="排产名称")
    private String scheduleName;

    /**
     * 计划ID
     */
    @TableField(value = "plan_id")
    @Schema(description="计划ID")
    private String planId;

    /**
     * 排产时间
     */
    @TableField(value = "schedule_time")
    @Schema(description="排产时间")
    private Date scheduleTime;

    /**
     * 开始日期
     */
    @TableField(value = "start_date")
    @Schema(description="开始日期")
    private Date startDate;

    /**
     * 结束日期
     */
    @TableField(value = "end_date")
    @Schema(description="结束日期")
    private Date endDate;

    /**
     * 负责人编号
     */
    @TableField(value = "createor_id")
    @Schema(description="负责人编号")
    private String createorId;

    /**
     * 状态(0=未确认,1=已确认)
     */
    @TableField(value = "`status`")
    @Schema(description="状态(0=未确认,1=已确认)")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description="更新时间")
    private Date updateTime;
}